home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 1.iso
/
dist
/
fw_curl.idb
/
usr
/
freeware
/
catman
/
p_man
/
cat3
/
curl_mprintf.Z
/
curl_mprintf
Wrap
Text File
|
2002-07-08
|
5KB
|
97 lines
curl_printf(3) libcurl Manual curl_printf(3)
NNAAMMEE
curl_maprintf, curl_mfprintf, curl_mprintf,
curl_msnprintf, curl_msprintf curl_mvaprintf, curl_mvf
printf, curl_mvprintf, curl_mvsnprintf, curl_mvsprintf -
formatted output conversion
SSYYNNOOPPSSIISS
##iinncclluuddee <<ccuurrll//mmpprriinnttff..hh>>
iinntt ccuurrll__mmpprriinnttff((ccoonnsstt cchhaarr **_f_o_r_m_a_t,, ......));;
iinntt ccuurrll__mmffpprriinnttff((FFIILLEE **_f_d,, ccoonnsstt cchhaarr **_f_o_r_m_a_t,, ......));;
iinntt ccuurrll__mmsspprriinnttff((cchhaarr **_b_u_f_f_e_r,, ccoonnsstt cchhaarr **_f_o_r_m_a_t,, ......));;
iinntt ccuurrll__mmssnnpprriinnttff((cchhaarr **_b_u_f_f_e_r,, ssiizzee__tt _m_a_x_l_e_n_g_t_h,, ccoonnsstt
cchhaarr **_f_o_r_m_a_t,, ......));;
iinntt ccuurrll__mmvvpprriinnttff((ccoonnsstt cchhaarr **_f_o_r_m_a_t,, vvaa__lliisstt _a_r_g_s));;
iinntt ccuurrll__mmvvffpprriinnttff((FFIILLEE **_f_d,, ccoonnsstt cchhaarr **_f_o_r_m_a_t,, vvaa__lliisstt
_a_r_g_s));;
iinntt ccuurrll__mmvvsspprriinnttff((cchhaarr **_b_u_f_f_e_r,, ccoonnsstt cchhaarr **_f_o_r_m_a_t,,
vvaa__lliisstt _a_r_g_s));;
iinntt ccuurrll__mmvvssnnpprriinnttff((cchhaarr **_b_u_f_f_e_r,, ssiizzee__tt _m_a_x_l_e_n_g_t_h,, ccoonnsstt
cchhaarr **_f_o_r_m_a_t,, vvaa__lliisstt _a_r_g_s));;
cchhaarr **ccuurrll__mmaapprriinnttff((ccoonnsstt cchhaarr **_f_o_r_m_a_t,, ......));;
cchhaarr **ccuurrll__mmvvaapprriinnttff((ccoonnsstt cchhaarr **_f_o_r_m_a_t,, vvaa__lliisstt _a_r_g_s));;
DDEESSCCRRIIPPTTIIOONN
These are all functions that produces output according to
a format string and given arguments. These are mostly
clones of the well-known C-style functions and there will
be no detailed explanation of all available formatting
rules and usage here.
See this table for notable exceptions.
ccuurrll__mmpprriinnttff(())
Normal printf() clone.
ccuurrll__mmffpprriinnttff(())
Normal fprinf() clone.
ccuurrll__mmsspprriinnttff(())
Normal sprintf() clone.
ccuurrll__mmssnnpprriinnttff(())
snprintf() clone. Many systems don't have
this. It is just like sspprriinnttff but with an
extra argument after the buffer that speci
fies the length of the target buffer.
ccuurrll__mmvvpprriinnttff(())
Normal vprintf() clone.
ccuurrll__mmvvffpprriinnttff(())
Normal vfprintf() clone.
ccuurrll__mmvvsspprriinnttff(())
Normal vsprintf() clone.
ccuurrll__mmvvssnnpprriinnttff(())
vsnprintf() clone. Many systems don't have
this. It is just like vvsspprriinnttff but with an
extra argument after the buffer that speci
fies the length of the target buffer.
ccuurrll__mmaapprriinnttff(())
Like printf() but returns the output string
as a malloc()ed string. The returned string
must be free()ed by the receiver.
ccuurrll__mmvvaapprriinnttff(())
Like curl_maprintf() but takes a va_list
pointer argument instead of a variable
amount of arguments.
To easily use all these cloned functions instead of the
normal ones, #define _MPRINTF_REPLACE before you include
the <curl/mprintf.h> file. Then all the normal names like
printf, fprintf, sprintf etc will use the curl-functions
instead.
RREETTUURRNN VVAALLUUEE
The ccuurrll__mmaapprriinnttff and ccuurrll__mmvvaapprriinnttff functions return a
pointer to a newly allocated string, or NULL it it failed.
All other functions return the number of character they
actually outputed.
SSEEEE AALLSSOO
pprriinnttff(3), sspprriinnttff(3), ffpprriinnttff(3), vvpprriinnttff(3)
libcurl 7.7.2 20 April 2001 curl_printf(3)